//
//  MSSettingAlertNode.m
//  MagicSword
//
//  Created by Netease on 15/12/1.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import "MSSettingAlertNode.h"

@implementation MSSettingAlertNode {
    SKSpriteNode *_passSprite;
    SKLabelNode  *_passLabel;
}

- (id)init {
    self = [super init];
    if (self) {
        [self initSubNodes];
    }
    
    return self;
}

- (void)initSubNodes {
    [self setButtonTitle:@"退出游戏"];
    [self setButtonTitleColor:[UIColor redColor]];
    [self setButtonTop:-40];
    
    _passSprite = [SKSpriteNode spriteNodeWithImageNamed:@"main_button"];
    _passSprite.position = CGPointMake(0, 10);
    _passSprite.zPosition = 12;
    _passSprite.name = NodeName_StopRoundButtonNode;
    [self addChild:_passSprite];

    _passLabel = [SKLabelNode labelNodeWithFontNamed:@"Helvetica"];
    _passLabel.position = CGPointMake(0, 2);
    _passLabel.zPosition = 13;
    _passLabel.fontSize = 13;
    _passLabel.fontColor = [UIColor darkGrayColor];
    _passLabel.name = NodeName_StopRoundButtonNode;
    _passLabel.text = @"结束回合";
    [self addChild:_passLabel];
}

@end
